package com.hyfrogx.config.wx;

import cn.hutool.core.collection.CollUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 微信支付配置
 *
 * @author wanglei
 * @date 2019-05-13 14:00:32
 */
@Data
@Component
@ConfigurationProperties(prefix = "wx.pay")
public class WxPayCfg {

	/**
	 * 默认支付参数key
	 */
	private String defaultId;

	/**
	 * 支付会跳地址
	 */
	private String notifyUrl;

	/**
	 * 支付配置
	 */
	private Map<String, Map> configs = CollUtil.newHashMap();

	/**
	 * 支付配置关系
	 */
	private Map<String, String> configMap = CollUtil.newHashMap();

}
